/* before after */
h1::before {
  transform: scaleX(0);
  transform-origin: bottom right;
}

h1:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

h1::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0 0 0 0;
  background: hsl(200 100% 80%);
  z-index: -1;
  transition: transform .3s ease;
}

h1 {
  position: relative;
  font-size: 5rem;
}

h2 {
  position: relative;
  font-size: 5rem;
  margin-block-start: 0.67em;
  margin-block-end: 0.67em;

}

/* // Basic styles */
button {
  background: none;
  border: 0;
  box-sizing: border-box;
  margin: 1em;
  padding: 1em 2em;

  /* // Using inset box-shadow instead of border for sizing simplicity */
  box-shadow: inset 0 0 0 2px #f45e61;
  color: #f45e61;
  font-size: inherit;
  font-weight: 700;

  /* // Required, since we're setting absolute on pseudo-elements */
  position: relative;
  vertical-align: middle;
}

html {
  block-size: 100%;
  inline-size: 100%;
}

body {
  /* 最小块大小 */
  min-block-size: 100%;
  min-inline-size: 100%;
  margin: 0;
  box-sizing: border-box;
  display: grid;
  place-content: center;
  font-family: system-ui, sans-serif;
}

@media (orientation: landscape) {
  body {
      grid-auto-flow: column;
  }
}